package com.example.a34;

import org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext;

public class A34Application {


    public static void main(String[] args) {
        AnnotationConfigServletWebServerApplicationContext context =
                new AnnotationConfigServletWebServerApplicationContext(WebConfig.class);

        /*
            小结:
                函数式控制器
                    1. RouterFunctionMapping，通过 RequestPredicate 映射路径
                    2. handler 要实现 HandlerFunction 接口
                    3. HandlerFunctionAdapter 调用 handler
            对比:
                    1. RequestMappingHandlerMapping 以 @RequestMapping 作为映射路径
                    2. 控制器的具体方法会被当做 handler
                    3. RequestMappingHandlerAdapter 调用 handler
         */
    }

}
